<seed-content id="class-remark">
  <seed-toolbar-header>
    <seed-toolbar-title>教学点评</seed-toolbar-title>
    <seed-toolbar-menu></seed-toolbar-menu>
  </seed-toolbar-header>

  <!--<div class="class-detail">-->
    <!--<div class="seed-underline top-tabs">-->
      <!--<div class="tab" [class.tabing]="tab.type===tabType" *ngFor="let tab of tabArray" (click)="chooseTab(tab.type)">-->
        <!--{{tab.name}}-->
      <!--</div>-->
    <!--</div>-->
  <!--</div>-->
  <!--教学点评-->
  <div class="class-detail">
    <div class="top-tabs">
      <div class="tab" [class.tabing]="teacherCommentInfo.commentState===1" (click)="switchCommentState(1)">已点评</div>
      <div class="tab" [class.tabing]="teacherCommentInfo.commentState===0" (click)="switchCommentState(0)">未点评</div>
    </div>
  </div>

  <seed-infinite-scroll (infiniteScroll)="getLessonListForParent()">
    <div class="teacher-comment" *ngIf="lessons.length>0">
      <div class="teacher-comment-total">课时（共{{lessons.length}}课时）</div>
      <lesson-comment-item [rightArrow]="true" *ngFor="let lesson of lessons;let i =index;" [lesson]="lesson" [index]="i"
                           (clicked)="goLessonComment(lesson)"></lesson-comment-item>
      <seed-infinite-scroll-content *ngIf="lessons.length>0"></seed-infinite-scroll-content>
    </div>
    <seed-default-graph *ngIf="!lessons.length"
                        [text]="'暂无课时'"
                        [url]="'noData'"
    ></seed-default-graph>
  </seed-infinite-scroll>
</seed-content>
